package com.guiji.quartz.task;

import com.guiji.quartz.domain.Aninews;
import com.guiji.quartz.domain.Gadgets;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import us.codecraft.webmagic.Site;
import us.codecraft.webmagic.Spider;
import us.codecraft.webmagic.downloader.HttpClientDownloader;
import us.codecraft.webmagic.model.ConsolePageModelPipeline;
import us.codecraft.webmagic.model.OOSpider;
import us.codecraft.webmagic.proxy.Proxy;
import us.codecraft.webmagic.proxy.SimpleProxyProvider;

/**
 * @program: cms-vue-plus
 * @description:
 * @author: gaoX
 * @create: 2021-10-12 16:17
 **/
@Component("gadgetsTaskeee")
public class GadgetsTaskeee {
	private static final Logger log = LoggerFactory.getLogger(GadgetsTaskeee.class);
	public void gadgetsTaskeee() throws Exception {
		Long startTime = System.currentTimeMillis();
		Gadgets gadgets = new Gadgets();
		try {
			gadgets.mainMethod();
		} catch (Exception e) {
		}finally {
			log.info("gadgetsTaskeee-end-:{}",System.currentTimeMillis()-startTime);
		}

	}
}
